﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using VersionComparer.DataModel.Assemblies.Images;

namespace VersionComparer.DataModel.Assemblies
{
    [Serializable]
    public class AssemblyReferenceItem : AssemblyItemBase<AssemblyName>
    {

        protected override void Initialize(AssemblyName value)
        {
            Text = value.FullName;
            Name = Text;
            base.Initialize(value);
        }

        protected override string GetFullText(AssemblyName value)
        {
            return string.Format("//Reference: {0}", Text);
        }

        protected override System.Drawing.Image GetSpecificImage()
        {
            return AssemblyResources.dll;

        }

        protected override void BuildRtf(Base.RtfBuilder builder, bool differencesOnly, bool useParentColor)
        {
            builder.AppendLine(FullText, commentColor);
        }
    }
}
